<%-- 
    Document   : user
    Created on : May 12, 2014, 2:18:49 PM
    Author     : khiemtd
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            <s:text name="home.links.user.list"/>
        </title>
    </head>
    <body>
        <h1>
            <s:text name="home.links.user.list"/>
        </h1>
        <table border="1">
            <thead>
                <tr>

                    <th>#</th>
                    <th>
                        <s:text name="users.entity.attribute.username"/>
                    </th>
                    <th>
                        <s:text name="users.entity.attribute.passcode"/>
                    </th>
                    <th>
                        <s:text name="users.entity.attribute.fullname"/>
                    </th>
                    <th>
                        <s:text name="users.entity.attribute.isadmin"/>
                    </th>
                </tr>
            </thead>
            <tbody>
                <s:iterator status="status" value="%{#session.users}">
                    <tr>
                        <td>
                            <s:property value="%{#status.count}"/>
                        </td>
                        <td>
                            <s:property value="%{username}"/>
                        </td>
                        <td>
                            <s:property value="%{passcode}"/>
                        </td>
                        <td>
                            <s:property value="%{fullName}"/>
                        </td>
                        <td>
                            <s:property value="%{isAdmin}"/>
                        </td>
                    </tr>
                </s:iterator>                
            </tbody>
        </table>

    </body>
</html>
